package com.xiaoq.positionmarket.service.impl;

import com.xiaoq.positionmarket.entity.PositionPushRecordEntity;
import com.xiaoq.positionmarket.repository.IPositionPushRecordRepository;
import com.xiaoq.positionmarket.service.IPositionPushRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenjh on 2018/4/4.
 */
@Service
public class PositionPushRecordServiceImpl implements IPositionPushRecordService {

    @Autowired
    private IPositionPushRecordRepository pushRecordRepository;

    @Override
    public boolean save(PositionPushRecordEntity entity) {
        return pushRecordRepository.save(entity);
    }

    @Override
    public List<PositionPushRecordEntity> getListByPositionMarketId(String positionMarketId) {
        return pushRecordRepository.getListByPositionMarketId(positionMarketId);
    }
}
